import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/Home.vue')
    },
    {
      path: '/users',
      name: 'users',
      component: () => import('../views/UserList.vue')
    },
    {
      path: '/content/articles',
      name: 'articleList',
      component: () => import('../views/ArticleList.vue')
    },
    {
      path: '/content/categories',
      name: 'categoryManagement',
      component: () => import('../views/CategoryManagement.vue')
    },
    {
      path: '/dishes/types',
      name: 'dishTypeManagement',
      component: () => import('../views/DishTypeManagement.vue')
    },
    {
      path: '/dishes/info',
      name: 'dishInformationManagement',
      component: () => import('../views/DishInformationManagement.vue')
    },
    {
      path: '/tables',
      name: 'tableManagement',
      component: () => import('../views/TableManagement.vue')
    },
    {
      path: '/orders/list',
      name: 'orderList',
      component: () => import('../views/OrderList.vue')
    },
    {
      path: '/goods/orders',
      name: 'goodsOrderList',
      component: () => import('../views/GoodsOrderList.vue')
    },
    {
      path: '/goods/warehouse',
      name: 'warehouseManagement',
      component: () => import('../views/WarehouseManagement.vue')
    }
  ]
})

export default router 